/**
 * 
 */
package kr.co.insoft.core.model.template.application;

import java.io.Serializable;

import kr.co.insoft.auth.model.security.User;
import flexjson.JSONSerializer;

/**
 * TABLE : T_BASE_PARAM
 * 
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public class ParamEntityModel  implements Serializable {
	
	static final long serialVersionUID = -715645747810155810L;
	
	String paramid;
	String paramName;
	String paramValue;
	String paramDesc;
	String applicationid;
	String updatedDate;
	Long userid;
	String companyid;
	/* OPTIONAL */
	String writer;
	String applicationName;
	String applicationTypeName;
	
	public String toString() {
		return (new JSONSerializer()).deepSerialize(this);
	}
	
	public void setAuth(User user) {
		this.userid = user.getId();
		this.companyid = user.getCompanyId();
	}

	/**
	 * @return the applicationName
	 */
	public String getApplicationName() {
		return applicationName;
	}

	/**
	 * @param applicationName the applicationName to set
	 */
	public void setApplicationName(String applicationName) {
		this.applicationName = applicationName;
	}

	/**
	 * @return the applicationTypeName
	 */
	public String getApplicationTypeName() {
		return applicationTypeName;
	}

	/**
	 * @param applicationTypeName the applicationTypeName to set
	 */
	public void setApplicationTypeName(String applicationTypeName) {
		this.applicationTypeName = applicationTypeName;
	}

	/**
	 * @return the writer
	 */
	public String getWriter() {
		return writer;
	}

	/**
	 * @param writer the writer to set
	 */
	public void setWriter(String writer) {
		this.writer = writer;
	}

	/**
	 * @return the paramid
	 */
	public String getParamid() {
		return paramid;
	}

	/**
	 * @param paramid the paramid to set
	 */
	public void setParamid(String paramid) {
		this.paramid = paramid;
	}

	/**
	 * @return the paramName
	 */
	public String getParamName() {
		return paramName;
	}

	/**
	 * @param paramName the paramName to set
	 */
	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	/**
	 * @return the paramValue
	 */
	public String getParamValue() {
		return paramValue;
	}

	/**
	 * @param paramValue the paramValue to set
	 */
	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}

	/**
	 * @return the paramDesc
	 */
	public String getParamDesc() {
		return paramDesc;
	}

	/**
	 * @param paramDesc the paramDesc to set
	 */
	public void setParamDesc(String paramDesc) {
		this.paramDesc = paramDesc;
	}

	/**
	 * @return the applicationid
	 */
	public String getApplicationid() {
		return applicationid;
	}

	/**
	 * @param applicationid the applicationid to set
	 */
	public void setApplicationid(String applicationid) {
		this.applicationid = applicationid;
	}

	/**
	 * @return the updatedDate
	 */
	public String getUpdatedDate() {
		return updatedDate;
	}

	/**
	 * @param updatedDate the updatedDate to set
	 */
	public void setUpdatedDate(String updatedDate) {
		this.updatedDate = updatedDate;
	}

	/**
	 * @return the userid
	 */
	public Long getUserid() {
		return userid;
	}

	/**
	 * @param userid the userid to set
	 */
	public void setUserid(Long userid) {
		this.userid = userid;
	}

	/**
	 * @return the companyid
	 */
	public String getCompanyid() {
		return companyid;
	}

	/**
	 * @param companyid the companyid to set
	 */
	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}
	
}
